package com.yjd.comm.borrow.enums;

/**
 * <b>description</b>：借款审批步骤 <br>
 * <b>time</b>：2014-8-22 下午7:14:54 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum BorrowStepEnum {
	step1(1, "初审"), step2(2, "复审"), step3(3, "发标"), step4(4, "终审");
	private Integer value;
	private String description;

	private BorrowStepEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static BorrowStepEnum get(Integer value) {
		BorrowStepEnum[] enums = BorrowStepEnum.values();
		for (BorrowStepEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		BorrowStepEnum enum1 = BorrowStepEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
}